
import './App.css'
import {Provider} from 'react-redux';
import store from './store/index';
import { BrowserRouter, HashRouter } from 'react-router-dom';
import { renderRoutes } from "react-router-config";
import routes from './router/index';
import './api/rem'
// import 'vant-react/dist/index.css';
import '../src/assets/icon/iconfont'
function App() {
  
  //router v6 版本更新了写法

  return (
    <Provider store={store}>
      <div className="App">
        <BrowserRouter>
          {renderRoutes(routes)}
        </BrowserRouter>
      </div>
    </Provider>
  )
}

export default App
